package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.PotentialStudent;
import cn.wolfcode.crm.query.PotentialStudentQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface IPotentialStudentService {
    int saveOrUpdate(PotentialStudent record);

    PotentialStudent selectByPrimaryKey(Long id);

    PageResult query(PotentialStudentQueryObject qo);

    List<PotentialStudent> queryIntroducerStudent(String state);

    List<PotentialStudent> all();

    void update(PotentialStudent student);

    //校检tel/qq
    boolean validateTel(Long id,String tel);
    boolean validateQq(Long id,String qq);
    List<PotentialStudent> selectByPutPoolState(QueryObject qo);

    //更改最后跟踪时间和跟踪次数
    void updateTracking(Long id);

    void updateForEnroll(PotentialStudent ps,String[] employmentIntention);

    //更改资源池的状态
    void putPoolState(Long id);

}
